package com.wdy.adapter;

/**
 * @ClassName: RowingBoatAdapter
 * @Description: TODO
 * @Date: 2019/12/30 14:42
 * @Author: wangdy001
 * @Version: 1.0
 */
public class RowingBoatAdapter implements RowingBoat {

    private FishingBoat fishingBoat;

    public RowingBoatAdapter(FishingBoat fishingBoat) {
        this.fishingBoat = fishingBoat;
    }

    @Override
    public void row() {
        this.fishingBoat.sail();
    }
}
